* {
    margin: 0;
    padding: 0;
}
/* 总样式 */
#service {
    position: fixed;
    top: 300px;
    left: 400px;
    width: 60px;
    height: 60px;
    z-index: 9;
}

#check {
    display: none;
}

/*  客服按钮样式 */

#service .btn {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #eee;
    border-radius: 50%;
    z-index: 10;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 40px;
    background-image: url("./imgs/客服.svg");
    animation: ani 1.5s infinite;
}
#service .btn:active {
    background-color: #ddd;
}

/* item按钮样式  --------------------*/

#service span {
    width: 60px;
    height: 60px;
    position: absolute;
    background-color: #eee;
    border-radius: 50%;
    top: 0;
    left: 0;
    transition: transform .5s;
}

/* qq 按钮样式 */
#service #check:checked ~ span.qq {
    background-image: url("./imgs/QQ.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 40px;
    transform: translate(0, -70px);
}

/* 微信按钮样式 */

#service  #check:checked ~ span.we_chat {
    background-image: url("./imgs/微信.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 60px;
    transform: translate(-70px, -70px);
}

/* 二维码样式 */

span.we_chat img {
    height: 120px;
    width: 118px;
    position: absolute;
    top: -124px;
    left: -5px;
    display: none;
}
span.we_chat:hover > img{
    display: block;
}



/* 电话按钮样式 */
#service  #check:checked ~ span.tel {
    background-image: url("./imgs/电话\ \(2\).svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 40px;
    transform: translate(-70px, 0);
}

/* 电话号码样式 */
span.tel p {
    width: 200px;
    background-color: rgba(60, 60, 60, .6);
    height: 60px;
    font-size: 20px;
    color: #efefef;
    text-align: center;
    line-height: 60px;
    border-radius: 6px;
    position: absolute;
    left: -210px;
    display: none;
}
span.tel:hover > p {
    display: block;
}

/* 动画 */
@keyframes ani {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(10deg);
    }
    20% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}